﻿<phone:PhoneApplicationPage 
    x:Class="TravelWallet.ProgramDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:adRotator="clr-namespace:AdRotator;assembly=AdRotator"
    xmlns:AdDuplex="clr-namespace:AdDuplex;assembly=AdDuplex.AdControl.Silverlight"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <StackPanel Orientation="Vertical" Height="768" VerticalAlignment="Stretch">
            <controls:Pivot x:Name="p_Pivot" Title="TRAVEL WALLET" FontSize="24" Height="700">
                <controls:PivotItem x:Name="pi_Details" Header="Details" Height="590" Padding="0,0,0,5">
                    <Grid>
                        <ListBox >
                        <StackPanel x:Name="sp_Details">
                            <TextBlock x:Name="lbl_Category" Margin="12,0,0,0" Style="{StaticResource PhoneTextLargeStyle}" Text="Category"/>
                            <TextBlock x:Name="tb_Category" Margin="12,10,0,0"  Style="{StaticResource PhoneTextLargeStyle}" Foreground="DeepSkyBlue" Text="{Binding Category, Mode=TwoWay}"/>
                            <TextBlock x:Name="lbl_Name"  Margin="12,10,0,0" Style="{StaticResource PhoneTextLargeStyle}" Text="Name"/>
                            <TextBlock x:Name="tb_Name"  Margin="12,10,0,0" Style="{StaticResource PhoneTextLargeStyle}" Foreground="DeepSkyBlue" Text="{Binding Path=Program.Name, Mode=TwoWay}"/>
                            <TextBlock x:Name="lbl_ProgramName"  Margin="12,10,0,0" Style="{StaticResource PhoneTextLargeStyle}" Text="Program Name"/>
                            <TextBlock x:Name="tb_ProgramName"  Margin="12,10,0,0" Style="{StaticResource PhoneTextLargeStyle}" Foreground="DeepSkyBlue" Text="{Binding Path=Program.SelectedProgram, Mode=TwoWay}"/>
                            <TextBlock x:Name="lbl_Number" Margin="12,10,0,0"  Style="{StaticResource PhoneTextLargeStyle}" Text="Number"/>
                            <TextBlock x:Name="tb_Number"  Margin="12,10,0,0" Style="{StaticResource PhoneTextLargeStyle}" Foreground="DeepSkyBlue" Text="{Binding Number, Mode=TwoWay}"/>
                            <TextBlock x:Name="lbl_Partners" Margin="12,10,0,0" Style="{StaticResource PhoneTextLargeStyle}" Text="Partners"/>
                            <TextBlock x:Name="tb_PartnerGroup" Text="{Binding Path=Program.PartnerGroup.Name, Mode=TwoWay}" Margin="12,10,0,0"  Style="{StaticResource PhoneTextLargeStyle}" Foreground="DeepSkyBlue"/>
                        </StackPanel>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem x:Name="pi_Partners" Header="Partners">
                    <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                        <ListBox x:Name="lb_Partners"  Margin="12,10,0,0"  ItemsSource="{Binding Partners}" FontSize="32" />
                    </Grid>
                </controls:PivotItem>
            </controls:Pivot>
            <!--<adduplex:AdControl x:Name="ad_AdDuplex" xmlns:adduplex="clr-namespace:AdDuplex;assembly=AdDuplex.AdControl.Silverlight" AppId="4927" IsTest="True" VerticalAlignment="Bottom" Visibility="Collapsed" /> -->
            <!--<adRotator:AdRotatorControl x:Name="AdRotatorControl" Width="480" Height="80" SettingsUrl="http://oscialco.w06.winhost.com/travelwallet/travelwalletadrotatorsettings.xml" AdDuplexAppId="4927" AdMobAdUnitId="a14ed1983c2d888" PubCenterAdUnitId="77346" PubCenterAppId="a80c5364-e9f4-49e6-8296-25be1d3f2bd0" DefaultSettingsFileUri="/wp7AdRotatorSettings.xml" IsEnabled="True" /> -->
            <adRotator:AdRotatorControl x:Name="AdRotatorControl" Width="480" Height="80" SettingsUrl="http://oscialco.w06.winhost.com/travelwallet/travelwalletadrotatorsettings.xml" AdDuplexAppId="4927" AdMobAdUnitId="a14ed1983c2d888" PubCenterAdUnitId="77346" PubCenterAppId="a80c5364-e9f4-49e6-8296-25be1d3f2bd0" DefaultSettingsFileUri="/wp7AdRotatorSettings.xml" IsEnabled="True" />
            <HyperlinkButton  Content="Touch here to remove ads and store more than 5 programs" Style="{StaticResource HyperlinkButtonStyle}" x:Name="ad_upgradetofull" Foreground="#FF9C9EA0" HorizontalAlignment="Center" FontSize="17" NavigateUri="/BuyPage.xaml" Padding="0" Height="Auto" Width="Auto" VerticalAlignment="Bottom" Margin="0" VerticalContentAlignment="Top" FontWeight="Normal" />
        </StackPanel>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.edit.rest.png" Text="edit" Click="b_Edit_Click"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.delete.rest.png" Text="delete" Click="b_Delete_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
